package LearnOverride;

public class Royalties extends Income{
    public  Royalties(double income) {
        super(income);
    }

    @Override
    public double getTax() {
        return income * 0.2; // 税率20%，我百度的
    }
}
